package media

import (
	"vrcm/src/vrcm/common/models"
)

type AssetAudit struct {
	models.Model

	TenantId     string `json:"tenant_id" gorm:"type:varchar(50);comment:租户"`
	Account      string `json:"account" gorm:"type:varchar(50);comment:账号"`
	AssetId      string `json:"asset_id" gorm:"type:varchar(100);comment:素材唯一id"`
	AssetUrl     string `json:"asset_url" gorm:"type:varchar(500);comment:素材地址"`
	AuditTaskId  string `json:"audit_task_id" gorm:"type:varchar(100);comment:审核id"`
	AuditState   int    `json:"audit_state" gorm:"type:tinyint;comment:审核状态 1通过 2不通过 3未审核"`
	AIAuditState int    `json:"ai_audit_state" gorm:"type:tinyint;comment:1已审核 2未审核"`
	models.ModelTime
	models.ControlBy
}

func (AssetAudit) TableName() string {
	return "asset_audit"
}

type AuditStatisticRes struct {
	Task     string `json:"task" comment:"审核任务"`
	SourceId int    `json:"source_id" comment:"信源"`
	Type1Num int    `json:"type1_num" comment:"色情" `
	Type2Num int    `json:"type2_num" comment:"暴力"`
	Type3Num int    `json:"type3_num" comment:"恶心"`
	Type4Num int    `json:"type4_num" comment:"广告"`
	Type5Num int    `json:"type5_num" comment:"政治"`
	Type6Num int    `json:"type6_num" comment:"其他"`
}
